package com.domino.client.view;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;

public class GameInfoLabel {
	
	private HTML label;
	
	
	
	public GameInfoLabel() {
		label = new HTML();
		label.setVisible(false);
	}

	public Widget getWidget() {
		return label;
	}

	public static final String inviteText = "Challenge your friend by copying <b>http://apps.facebook.com/othellommx</b> and post it on your friend's chat!";
	public static final String reloadBrowserText = "";

	public void showGameFinishedInfo() {
		label.setHTML(reloadBrowserText);
		label.setVisible(true);
	}

	public void opponentJoined() {
		label.setVisible(false);
	}

	public void showInviteOpponent() {
		label.setHTML(inviteText);
		label.setVisible(true);
	}

	public void showSuperFulis(String message) {
		label.setHTML(message);
		label.setVisible(true);
	}

}
